#ifndef __E53_COM_H
#define __E53_COM_H

#define LOG_HRTM_TAG                 "hrtm"
#define LOG_HRTM_TAG_INFO            "["LOG_HRTM_TAG"          %4d] "
#define LOG_HRTM_TAG_NET_DATA        "["LOG_HRTM_TAG" NET DATA %4d] "
#define LOG_HRTM_TAG_E53_DATA        "["LOG_HRTM_TAG" E53 DATA %4d] "
#define LOG_HRTM_TAG_SOUND           "["LOG_HRTM_TAG" SOUND    %4d] "
#define LOG_HRTM_TAG_UART            "["LOG_HRTM_TAG" UAERT    %4d] "
#define LOG_HRTM_TAG_SWTMR           "["LOG_HRTM_TAG" SWTMR    %4d] "

typedef enum {
    OFF = 0,
    ON
} SWITCH_STATUS_ENUM;

typedef struct {
    uint16_t                    w;
    uint16_t                    h;
    uint8_t                     dir;                     //显示方向 设置横屏或者竖屏显示 0或1为竖屏 2或3为横屏
    uint16_t                    f_color;                 //字体颜色
    uint16_t                    b_color;                 //背景颜色
    uint16_t                    f_size;                  //字体尺寸
    uint8_t                     start_line;              //显示内容起始行
} lcd_param_t;

extern void e53_tm_thread(void *args);
extern void e53_hrd_thread(void *args);
extern void e53_em_thread(void *args);
extern void e53_em_thread_delete(void);
extern void Max30102_Reset();
void send_e53_data(int task_type, void *data);

#endif // __E53_COM_H